/* 
 * File:   JUuid.cpp
 * Author: johnneyshi
 * 
 * Created on 2013年1月6日, 上午11:41
 */

#include "JUuid.h"
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/lexical_cast.hpp>

JUuid::JUuid() {
    
}

JUuid::JUuid(const JUuid& orig) {
}

JUuid::~JUuid() {
}

std::string JUuid::ToString()
{
    using namespace boost::uuids;
    uuid u = random_generator()();
    return boost::lexical_cast<std::string>(u);
   //return std::string(u.data);
}
